package com.tiamo.traders.service.serviceImpl;

import com.tiamo.traders.entity.Business;
import com.tiamo.traders.mapper.BusinessMapper;
import com.tiamo.traders.service.BusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusinessServiceImpl implements BusinessService {

    @Autowired
    BusinessMapper businessMapper;

    @Override
    public List<Business> businessFindAll(Business business) {
        return businessMapper.businessFindAll(business);
    }

    @Override
    public Integer businessGetCount(Business business) {
        return businessMapper.businessGetCount(business);
    }

    @Override
    public Integer businessAdd(Business business) {
        return businessMapper.businessAdd(business);
    }

    @Override
    public Integer businessDelete(Integer id) {
        return businessMapper.businessDelete(id);
    }

    @Override
    public Integer businessUpdate(Business business) {
        return businessMapper.businessUpdate(business);
    }

    @Override
    public Business businessFindById(Integer id) {
        return businessMapper.businessFindById(id);
    }
}
